﻿@model ICDA.Web.Models.ChangePasswordModel
@{
    ViewBag.Title = "ChangePassword";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="tabscontainer">
    <div class="tabs">
        <div class="tabs">
            <div class="tab first" id="tab_menu_1">
                <div class="link">@Html.ActionLink("My Profile", "MyAccount", "Account")</div>
                <div class="arrow">
                </div>
            </div>
            <div class="tab selected last" id="tab_menu_2">
                <div class="link">@Html.ActionLink("Change Password", "ChangePassword", "Account")</div>
                <div class="arrow">
                </div>
            </div>
        </div>
    </div>
    @using (Html.BeginForm())
    {
        <div class="curvedContainer">
            <div class="tabcontent" id="tab_content_2" style="display: block">
                <div class="formcontainer">
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.OldPassword)
                        </div>
                        <div class="formfield">
                            @Html.PasswordFor(m => m.OldPassword)
                            <div class="messageRow">
                                @Html.ValidationMessageFor(m => m.OldPassword)
                            </div>
                        </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.NewPassword)
                        </div>
                        <div class="formfield">
                            @Html.PasswordFor(m => m.NewPassword)
                            <div class="messageRow">
                                @Html.ValidationMessageFor(m => m.NewPassword)
                            </div>
                        </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.ConfirmPassword)
                        </div>
                        <div class="formfield">
                            @Html.PasswordFor(m => m.ConfirmPassword)
                            <div class="messageRow">
                                @Html.ValidationMessageFor(m => m.ConfirmPassword)
                            </div>
                        </div>
                    </div>
                    <div class="formEditButton">
                        <input type="submit" value="Update" class="button orange medium" />
                    </div>
                </div>
            </div>
        </div>
    }
</div>
